/**
 *@description: 数据字典  API：清泉
 *@author: Xhd
 *@date: 2024-04-23 09:23:34
*/

import React from 'react'

// 获取树列表
export async function apiDictionaryTree(params) {
  return await React.$postJson('/manage/api/b/dictionary/tree', params);
}

// 数据字典-新增
export async function apiDictionaryAdd(params) {
  return await React.$postJson('/manage/api/b/dictionary/add', params);
}

// 数据字典-编辑
export async function apiDictionaryEdit(params) {
  return await React.$postJson('/manage/api/b/dictionary/edit', params);
}

// 数据字典-删除
export async function apiDictionaryDelete(params) {
  return await React.$post('/manage/api/b/dictionary/delete', params);
}

// 数据字典-排序
export async function apiDictionaryReorder(params) {
  // return await React.$postJson('/manage/api/b/dictionary/reorder', params);
  return await React.$postJson('/manage/api/b/dictionary/simpleReorder', params)
}
